<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:50px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo" cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="6">基本信息</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required "  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right" ><span class="color_red">*</span>项目实施地点：</td>
		<td  colspan="5">
			<input name="proposal/address" label="项目实施地点" type="text" required class="input_css required "  maxlength="100" value="<x:out select="$xmlData/data/proposal/address" />"/> 
		</td>
		<%-- <td align="right" width="20%"><span class="color_red">*</span>指南代码：</td>
		<td  valign="middle" colspan="2" width="30%">
		<input name="proposal/guide_code" value="<x:out select="$xmlData/data/proposal/guide_code" />" class="required" maxlength="100" label="指南代码" />
		</td> --%>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>配套项目计划类别：</td>
		<td  colspan="5" valign="middle">
		江苏省：<br>
		<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="plan_category" label="科技支撑计划 （工业、农业、社发）" value="01" /><span style="vertical-align: middle;">科技支撑计划 （工业、农业、社发）</span></label> &nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="plan_category" label="重大科技成果转化" value="02" /><span style="vertical-align: middle;">重大科技成果转化</span></label> &nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="plan_category" label="国际科技合作" value="04" /><span style="vertical-align: middle;">国际科技合作</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_05" style="vertical-align: middle;" name="plan_category" label="科技型中小企业创新资金" value="05" /><span style="vertical-align: middle;">科技型中小企业创新资金</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
	    <label> <input type="radio" class="do " id="advant_06" style="vertical-align: middle;" name="plan_category" label="产学研联合创新资金" value="06" /><span style="vertical-align: middle;">产学研联合创新资金</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_07" style="vertical-align: middle;" name="plan_category" label="临床医学科技专项" value="07" /><span style="vertical-align: middle;">临床医学科技专项</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="plan_category" label="科技基础设施建设计划（ 重大研发机构 、企业研究生工作站、重点实验室、国家工程技术研究中心培育点、工程技术研究中心、科技公共服务平台及服务业务项目、企业院士工作站、 产业技术研究院、 企业研究院 、企业研究院 ）" value="03" /><span style="vertical-align: middle;">科技基础设施建设计划（ 重大研发机构 、企业研究生工作站、重点实验室、国家工程技术研究中心培育点、工程技术研究中心、科技公共服务平台及服务业务项目、企业院士工作站、 产业技术研究院、 企业研究院 、企业研究院 ）</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_08" style="vertical-align: middle;" name="plan_category" label="其他" value="08" /><span style="vertical-align: middle;">其他</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<br>
		国家：<br>
		<label> <input type="radio" class="do " id="advant_09" style="vertical-align: middle;" name="plan_category" label="863计划" value="09" /><span style="vertical-align: middle;">863计划</span></label> &nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_10" style="vertical-align: middle;" name="plan_category" label="973计划" value="10" /><span style="vertical-align: middle;">973计划</span></label> &nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_11" style="vertical-align: middle;" name="plan_category" label="科技支撑" value="11" /><span style="vertical-align: middle;">科技支撑</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_12" style="vertical-align: middle;" name="plan_category" label="省农业科技成果转化资金" value="12" /><span style="vertical-align: middle;">省农业科技成果转化资金</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_13" style="vertical-align: middle;" name="plan_category" label="国际科技合作" value="13" /><span style="vertical-align: middle;">国际科技合作</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
	    <label> <input type="radio" class="do " id="advant_14" style="vertical-align: middle;" name="plan_category" label="科技惠民计划" value="14" /><span style="vertical-align: middle;">科技惠民计划</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_15" style="vertical-align: middle;" name="plan_category" label="国家中小型科技创新基金" value="15" /><span style="vertical-align: middle;">国家中小型科技创新基金</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_16" style="vertical-align: middle;" name="plan_category" label="“02”专项" value="16" /><span style="vertical-align: middle;">“02”专项</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label> <input type="radio" class="do " id="advant_17" style="vertical-align: middle;" name="plan_category" label="其他" value="17" /><span style="vertical-align: middle;">其他</span></label>&nbsp;&nbsp;&nbsp;&nbsp;
	    
	    <input type="hidden" name="proposal/plan_category_value" id="plan_category_value" class="required" value="<x:out select="$xmlData/data/proposal/plan_category_value" />" label="配套项目计划类别" /> 
		<input type="hidden" name="proposal/plan_category_name" id="plan_category_name" value="<x:out select="$xmlData/data/proposal/plan_category_name" />" /></td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>国家/省项目批准文号：</td>
		<td  colspan="5" >
			<input name="proposal/approval_number" label="国家/省项目批准文号" type="text" required class="input_css required "  maxlength="30" value="<x:out select="$xmlData/data/proposal/approval_number" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right" ><span class="color_red">*</span>项目编号：</td>
		<td  colspan="5" >
			<input name="proposal/project_no" label="项目编号" type="text" required class="input_css required "  maxlength="30" value="<x:out select="$xmlData/data/proposal/project_no" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right" ><span class="color_red">*</span>项目任务书/合同书编号：</td>
		<td  colspan="5" >
			<input name="proposal/contract_no" label="项目任务书/合同书编号" type="text" required class="input_css required "  maxlength="30" value="<x:out select="$xmlData/data/proposal/contract_no" />"/> 
		</td>
	</tr>
	<tr>
	<td  align="right" width="20%"><span class="color_red">*</span>项目开始时间：</td>
	<td colspan="2" width="30%">
		<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
		<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date " label="项目开始时间" ></cpt:date> 
	</td>
	<td  align="right" width="20%"><span class="color_red">*</span>项目结束时间：</td>
	<td colspan="2" width="30%">
		<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
		<cpt:date id="end_date" name="proposal/end_date" className="required date " label="项目结束时间"  value="${end_date}" ></cpt:date> 
	</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目级次：</td>
		<td   colspan="2" valign="middle">
		<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="level" label="国家" value="01" onclick="setChose(this.value);"/><span style="vertical-align: middle;">国家</span></label> 
		<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="level" label="省级" value="02" onclick="setChose(this.value);"/><span style="vertical-align: middle;">省级</span></label> 
	    <input type="hidden" name="proposal/level_value" id="level_value" class="required" value="<x:out select="$xmlData/data/proposal/level_value" />" label="项目级次" /> 
		<input type="hidden" name="proposal/level_name" id="level_name" value="<x:out select="$xmlData/data/proposal/level_name" />" /></td>
		<td  align="right"  ><span class="color_red">*</span>立项部门：</td>
		<td  colspan="2">
		<input type="text" name="proposal/project_dept" label="立项部门" class="input_css required" class="required" maxlength="50" value="<x:out select="$xmlData/data/proposal/project_dept"/>" />
		</td>
	</tr>
	<tr>
		<td  align="right" ><span class="color_red">*</span>所属技术领域：</td>
		<td  colspan="5">
			<c:set var="technology"><x:out select="$xmlData/data/proposal/technology_value" /></c:set>
			<label><input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="电子与信息" value="01" /><span style="vertical-align: middle;">电子与信息</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="生物技术与新医药" value="02" /><span style="vertical-align: middle;">生物技术与新医药</span></label> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="新型材料" value="03" /><span style="vertical-align: middle;">新型材料</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="光机电一体化" value="04" /><span style="vertical-align: middle;">光机电一体化</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="新能源与高效节能" value="05" /><span style="vertical-align: middle;">新能源与高效节能</span></label><br/>
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="环境与资源利用" value="06" /><span style="vertical-align: middle;">环境与资源利用</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="航空航天" value="07" /><span style="vertical-align: middle;">航空航天</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="现代交通" value="08" /><span style="vertical-align: middle;">现代交通</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="地球、空间及海洋工程" value="09" /><span style="vertical-align: middle;">地球、空间及海洋工程</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="核技术应用" value="10" /><span style="vertical-align: middle;">核技术应用</span></label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
			<label> <input type="radio" class="do"  style="vertical-align: middle;" name="technology" label="其他" value="11" /><span style="vertical-align: middle;">其他</span></label>
			<input type="hidden" id="technology_value" name="proposal/technology_value" class="required" value="${technology}" label="所属技术领域">
			<input type="hidden" name="proposal/technology_name" value="<x:out select="$xmlData/data/proposal/technology_name" />">
		</td>
	</tr>
	<tr>
		<td align="right" ><span class="color_red">*</span>项目所属产业：</td>
		<td  colspan="5">
		<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set> 
		<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox> 
		<input type="hidden" id="industry_value" name="proposal/industry_value"
			class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right" ><span class="color_red">*</span>申请日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申请日期"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6"><span class="color_red">*</span>申报项目资金情况（金额单位：万元）</td>
	</tr>
	<tr id="country">
	    <td colspan="6">一、国家计划项目 （限国家已立项的项目填写）</td>
	</tr>
	<tr id="country">
	<td   align="right">项目计划投资总额：</td>
	<td  colspan="2">
	<input  name="proposal/country_xmjhtzze" id="country_xm" label="项目计划投资总额" type="text"  class="input_css  gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_xmjhtzze" />"/> 
	</td>
	<td   align="right" >其中：已完成投资：</td>
	<td  colspan="2">
	<input  name="proposal/country_ywctz" id="country_wc" class="gray " disabled label="其中：已完成投资" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_ywctz" />"/> 
	</td>
	</tr>
	<tr id="country">
	<td   align="right">国家计划资助资金总额：</td>
	<td  colspan="2">
	<input  name="proposal/country_plan_subsidize" label="国家计划资助资金总额" type="text"  class="input_css  required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_plan_subsidize" />"/> 
	</td>
	<td   align="right" >国家实际已到位资金：</td>
	<td  colspan="2">
	<input  name="proposal/country_plan_subsidize_already" label="国家计划资助资金总额-->国家实际已到位资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_plan_subsidize_already" />"/> 
	</td>
	</tr>
	
	<tr id="country">
	<td   align="right">省市计划配套资金总额：</td>
	<td  colspan="2">
	<input  name="proposal/province_city_plan_subsidize" label="省市计划配套资金总额" type="text"  class="input_css  required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/province_city_plan_subsidize" />"/> 
	</td>
	<td   align="right" >省市配套比例(%)：</td>
	<td  colspan="2">
         <input  name="proposal/province_city_ratio" label="省市配套比例" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/province_city_ratio" />"/>
	</td>
	</tr>
	
	<tr id="country">
	<td   align="right">其中：省级计划配套资金：</td>
	<td  colspan="2">
	<input  name="proposal/country_province_plan_subsidize" label="省级计划配套资金" type="text"  class="input_css  required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_province_plan_subsidize" />"/> 
	</td>
	<td   align="right" >省级实际已到位配套资金：</td>
	<td  colspan="2">
	<input  name="proposal/country_province_plan_subsidize_already" label="省级计划配套资金-->省级实际已到位配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_province_plan_subsidize_already" />"/> 
	</td>
	</tr>
	<tr id="country">
	<td align="center" rowspan="3">市区计划配套资金</td>
	<td align="center" colspan="2">市区计划配套资金：</td>
	<td>
	<input  name="proposal/city_area_plan_subsidize" label="市区计划配套资金" type="text"  class="input_css  required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/city_area_plan_subsidize" />"/> 
	</td>
	<td align="center">市区配套比例(%)：</td>
	<td><input  name="proposal/city_area_ratio" label="市区计划配套资金-->市区配套比例" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/city_area_ratio" />"/></td>
	</tr>
	<tr id="country">
	<td align="center" colspan="2">其中：市本级需配套资金：</td>
	<td ><input  name="proposal/country_city_assort_ratio" label="市区计划配套资金-->市本级需配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_city_assort_ratio" />"/></td>
	<td align="center">区级需配套资金：</td>
	<td ><input  name="proposal/country_area_assort_ratio" label="市区计划配套资金-->区级需配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_area_assort_ratio" />"/></td>
	</tr>
	<tr id="country">
	<td align="center" colspan="2">市本级已配套资金：</td>
	<td ><input  name="proposal/country_city_assort_ratio_already" label="市区计划配套资金-->市本级已配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_city_assort_ratio_already" />"/></td>
	<td align="center">区级已配套资金：</td>
	<td ><input  name="proposal/country_area_assort_ratio_already" label="市区计划配套资金-->区级已配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/country_area_assort_ratio_already" />"/></td>
	</tr>
	
	<tr id="province">
	    <td colspan="6">二、省级计划项目 （限省级已立项的项目填写）</td>
	</tr>
	<tr id="province">
	<td   align="right">项目计划投资总额：</td>
	<td  colspan="2">
	<input  name="proposal/xmjhtzze" id="province_xm" label="项目计划投资总额" type="text"  class="input_css  gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/xmjhtzze" />"/> 
	</td>
	<td   align="right" >其中：已完成投资：</td>
	<td  colspan="2">
	<input  name="proposal/ywctz" id="province_wc" class="gray " disabled label="其中：已完成投资" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/ywctz" />"/> 
	</td>
	</tr>
	<tr id="province">
	<td   align="right">省级计划资助资金：</td>
	<td  colspan="2">
	<input  name="proposal/province_plan_subsidize" label="省级计划资助资金" type="text"  class="input_css  required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/province_plan_subsidize" />"/> 
	</td>
	<td   align="right" >已到位资金：</td>
	<td  colspan="2">
	<input  name="proposal/province_plan_subsidize_already" label="省级计划资助资金-->已到位资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/province_plan_subsidize_already" />"/> 
	</td>
	</tr>
	
	<tr id="province">
	<td align="center" rowspan="3">地方计划配套资金</td>
	<td align="center" colspan="2">地方配套比例(%)：</td>
	<td colspan="3"><input  name="proposal/assort_ratio" label="地方计划配套资金-->地方配套比例" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/assort_ratio" />"/></td>
	</tr>
	<tr id="province">
	<td align="center" colspan="2">其中：市本级需配套资金：</td>
	<td ><input  name="proposal/city_assort_ratio" label="市区计划配套资金-->市本级需配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/city_assort_ratio" />"/></td>
	<td align="center">区级需配套资金：</td>
	<td ><input  name="proposal/area_assort_ratio" label="市区计划配套资金-->区级需配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/area_assort_ratio" />"/></td>
	</tr>
	<tr id="province">
	<td align="center" colspan="2">市本级已配套资金：</td>
	<td ><input  name="proposal/city_assort_ratio_already" label="市区计划配套资金-->市本级已配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/city_assort_ratio_already" />"/></td>
	<td align="center">区级已配套资金：</td>
	<td ><input  name="proposal/area_assort_ratio_already" label="市区计划配套资金-->区级已配套资金" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/area_assort_ratio_already" />"/></td>
	</tr>
	
	
	<tr>
	<td   align="right" >申请金额：</td>
	<td  colspan="5">
	<input  name="proposal/sqje" id="sqje" class="gray " disabled label="申请金额" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	</td>
	</tr>
	<tr>
	<td  align="right"  >项目类别：</td>
	<td colspan="5"><x:out select="$xmlData/data/proposal/grant_name" /></td> 
	</tr>
	<tr>
	<td  align="right">支持方式：</td>
		<td  colspan="2">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td colspan="2">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" >归口管理部门：</td>
		<td  colspan="2">
		<span name="proposal/org_name">无锡市科学技术局</span>
		<%-- <input name="proposal/org_name" label="归口管理部门" type="text" required class="input_css required "  maxlength="50" value="<x:out select="$xmlData/data/proposal/org_name" />"/> --%>
		</td>
	    <td  align="right">管理类别：</td>
		<td  colspan="2">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
	</tr>
	<tr>
	<td colspan="6" class="t_bar2">申请资助依据条款
	</tr>
	 <tr>
		<td colspan="6">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<div class="t_bar">
	<span class="color_red">*</span>国家/省经费下达情况
</div>
	<table  id="tblachievements" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="18%">经费下达部门</th>
						<th class="TblHead" align="center"  width="18%">经费下达时间</th>
						<th class="TblHead" align="center"  width="18%">经费下达通知书/文件编号</th>
						<th class="TblHead" align="center"  width="18%">经费进帐凭证号</th>
						<th class="TblHead" align="center"  width="18%">下达经费金额（万元）</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selachievements" >
						</td>
						<td align="center">
							<span name="achievements|achievement[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text"  maxlength="50" name="achievements|achievement[0]|funds_dept" label="经费下达部门" value="" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input  id="achievement_start_date_[0]" name="achievements|achievement[0]|start_date" label="经费下达时间" value="" class=" required input_text date " style="width:80px" />
						</td>
						<td align="center">
							<input type="text"  maxlength="30"  name="achievements|achievement[0]|file_no" label="经费下达通知书/文件编号" value="" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input type="text" maxlength="30"  name="achievements|achievement[0]|voucher_no" label="经费进帐凭证号" value="" class="required input_css" style="width: 80%;" />
						</td>
						<td align="center">
							<input type="text"  name="achievements|achievement[0]|total_funds" label="下达经费金额" value="" onfocus="InitInput.setNumber(this,9,4,2)" class="required input_css" style="width: 80%;text-align: right;" onchange="setAchievement()"/>
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/achievements/achievement" var="achievement">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selachievements" >
						</td>
						<td align="center">
							<span   name="achievements/achievement[${flag}${index}]@seq_no" ><x:out select="$achievement/@seq_no"/></span> 
						</td>
						<td>
							<input type="text"  maxlength="50" name="achievements/achievement[${flag}${index}]/funds_dept" label="经费下达部门" value="<x:out select="$achievement/funds_dept"/>" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<c:set var="start_date" scope="page"><x:out select="$achievement/start_date"/></c:set>
							<input  id="achievement_start_date_[${flag}${index}]" value="${start_date}" name="achievements/achievement[${flag}${index}]/start_date" class="required date input_text" style="width:80px" label="经费下达时间" />
						</td>
						<td align="center">
							<input type="text" maxlength="30"  name="achievements/achievement[${flag}${index}]/file_no" label="经费下达通知书/文件编号" value="<x:out select="$achievement/file_no"/>" class="required input_css" style="width: 80%;"/>
						</td>
						<td align="center">
							<input type="text"  maxlength="30" name="achievements/achievement[${flag}${index}]/voucher_no" label="经费进帐凭证号" maxlength="30" value="<x:out select="$achievement/voucher_no"/>"  class="required input_css" style="width: 80%;" />
						</td>
						<td align="center">
							<input type="text"  name="achievements/achievement[${flag}${index}]/total_funds" label="下达经费金额" value="<x:out select="$achievement/total_funds"/>" onfocus="InitInput.setNumber(this,9,4,2)" class="required input_css" style="width: 80%;text-align: right;" onchange="setAchievement()"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblachievements");
		           </script>
				</tbody>
					</table>
					<table  cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" >
					<tr align="center">
					<td align="center" width="10%">合计</td>
					<td width="18%">/</td>
					<td width="18%">/</td>
					<td width="18%">/</td>
					<td width="18%">/</td>
					<td width="18%"><input  name="achievements/total_funds" id="total_funds" class="gray " disabled  type="text" style="width:80%;text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/achievements/total_funds" />"/> </td>
					</tr>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblachievements',99,'近三年主要科研成果应用情况最多只能填写99条')){addNewRow('tblachievements');showDateTag('tblachievements');setAchievement()}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblachievements','selachievements')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblachievements','selachievements')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblachievements','条科研成果应用情况');setAchievement();">
					</td></tr>
	</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="org1">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息1</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1"
			style="display: none">*</span>单位名称：</td>
		<td colspan="3"><input name="proposal/org_name1" label="合作单位信息1-->单位名称"
			type="text" class="input_css " onchange="cydw('org1');"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/org_name1" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2"
			style="display: none">*</span>单位地址：</td>
		<td colspan="3"><input name="proposal/address1"
			label="合作单位信息1-->地址" type="text" class="input_css "
			onchange="cydw('org1');" style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address1" />" /></td>
	</tr>
	<tr>
		<td width="14%" align="right"><span class="color_red" id="color3"
			style="display: none">*</span>注册类型：</td>
		<td width="38%" align="left" colspan="1"><c:set var="nature1">{'id':'<x:out
					select="$xmlData/data/proposal/nature1_code" />','name':'<x:out
					select="$xmlData/data/proposal/nature1_name" />'}</c:set> <cpt:tree
				key="nature_type" cacheable="false" className="hn_iuput_kuang gray"
				readonly="true" value="${nature1}" label="合作单位信息1-->注册类型"
				id="nature1" showPattern="current" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValue2" /> <input
			id="nature1_code" type="hidden" name="proposal/nature1_code" class=""
			label="合作单位信息1-->注册类型"
			value="<x:out select="$xmlData/data/proposal/nature1_code" />" /> <input
			id="nature1_name" type="hidden" name="proposal/nature1_name"
			value="<x:out select="$xmlData/data/proposal/nature1_name" />" /></td>
		<td align="right"><span class="color_red" id="color4"
			style="display: none">*</span>组织机构代码：</td>
		<td><input name="proposal/org_no1" label="合作单位信息1-->组织机构代码"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/org_no1" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color5"
			style="display: none">*</span>联系人：</td>
		<td><input name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_name1" />" /></td>
		<td align="right"><span class="color_red" id="color6"
			style="display: none">*</span>电话：</td>
		<td><input name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话"
			type="text" class="input_css " onchange="cydw('org1');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_tel1" />" /></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="org2">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息2</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1"
			style="display: none">*</span>单位名称：</td>
		<td colspan="3"><input name="proposal/org_name2" label="合作单位信息2-->单位名称"
			type="text" required class="input_css " onchange="cydw('org2');"
			style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/org_name2" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2"
			style="display: none">*</span>单位地址：</td>
		<td colspan="3"><input name="proposal/address2"
			label="合作单位信息2-->地址" type="text" required class="input_css "
			onchange="cydw('org2');" style="width: 725px;" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/address2" />" /></td>
	</tr>
	<tr>
		<td width="14%" align="right"><span class="color_red" id="color3"
			style="display: none">*</span>注册类型：</td>
		<td width="38%" align="left" colspan="1"><c:set var="nature2">{'id':'<x:out
					select="$xmlData/data/proposal/nature2_code" />','name':'<x:out
					select="$xmlData/data/proposal/nature2_name" />'}</c:set> <cpt:tree
				key="nature_type" cacheable="false" className="hn_iuput_kuang gray"
				readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
				id="nature2" showPattern="current" shieldPattern="0"
				topCheckbox="false" onClick="initTreeValue2" /> <input
			id="nature2_code" type="hidden" name="proposal/nature2_code" class=""
			label="合作单位信息2-->注册类型"
			value="<x:out select="$xmlData/data/proposal/nature2_code" />" /> <input
			id="nature2_name" type="hidden" name="proposal/nature2_name"
			value="<x:out select="$xmlData/data/proposal/nature2_name" />" /></td>
		<td align="right"><span class="color_red" id="color4"
			style="display: none">*</span>组织机构代码：</td>
		<td><input name="proposal/org_no2" label="合作单位信息2-->组织机构代码"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/org_no2" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color5"
			style="display: none">*</span>联系人：</td>
		<td><input name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_name2" />" /></td>
		<td align="right"><span class="color_red" id="color6"
			style="display: none">*</span>电话：</td>
		<td><input name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话"
			type="text" class="input_css " onchange="cydw('org2');"
			maxlength="20"
			value="<x:out select="$xmlData/data/proposal/lxr_tel2" />" /></td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3"
	cellspacing="1">
	
<tr>		<td colspan="8" class="t_bar2">人员信息</td></tr>
	
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>
<script type="text/javascript">
function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
}
function setPre2(){
	var  edu_total=$("#edu_total").val();
    var  staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#junior_college_pre").val("0.00");
    }else{
    $("#junior_college_pre").val(formatVal(edu_total*100/staff_total));
    }
}
function setAchievement(){
	var count1 =0;
	
	$("#tblachievements tr:gt(1)").each(function(){
		var fund1 = $(this).children().eq("6").children().val();
		if(!$.isNumeric(fund1)) fund1 =0;
		count1 = parseFloat(fund1) + parseFloat(count1);
	});
	$("#total_funds").val(formatVal2(count1));
}


$(function(){
	setChose($("#level_value").val());
	cydw('org1');
	cydw('org2');
	$("#tblCooperation").find("select").each(function(){
		setIdNoCheck($(this).attr("id"));
	});
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

function setChose(val){
	if(val == '01'){
		$("#basicInfo").find("tr[id='province']").each(function(){
			$(this).hide();
		});
		$("#basicInfo").find("tr[id='province']").find("input").each(function(){
			$(this).val("");
		});
		$("#basicInfo").find("tr[id='country']").each(function(){
			$(this).show();
		});
	}else if(val == '02'){
		$("#basicInfo").find("tr[id='country']").each(function(){
			$(this).hide();
		});
		$("#basicInfo").find("tr[id='country']").find("input").each(function(){
			$(this).val("");
		});
		$("#basicInfo").find("tr[id='province']").each(function(){
			$(this).show();
		});
	}
	synchroinfo(val);
}
function synchroinfo(val){
	var xmjhtzze = $("#source_total").val();
	var source_already = $("#source_already").val();
	if(val == '01'){
		$("#country_xm").val(formatNumberAuto(xmjhtzze+"", 7, 4, 2));
		$("#country_wc").val(formatNumberAuto(source_already+"", 7, 4, 2));
	}else if(val == '02'){
		$("#province_xm").val(formatNumberAuto(xmjhtzze+"", 7, 4, 2));
		$("#province_wc").val(formatNumberAuto(source_already+"", 7, 4, 2));
	}
}

</script>